/* 计分页面样式 */
.score-page {
    padding: 120px 20px 50px;
    text-align: center;
    background-image: url('../images/wood.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    min-height: 100vh;
    width: 100%;
    position: relative;
}

/* 添加半透明遮罩层以提高文字可读性 */
.score-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: -1;
}

.score-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: rgba(0, 0, 0, 0.435);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.753);
}

/* 文字颜色调整 */
.score-container h1 {
    color: white;
}

.team-card {
    background-color: rgba(57, 28, 28, 0.7);
}

.team-header h2, .team-score {
    color: rgb(93, 41, 11);
}

h1 {
    color: #e3e0e0;
    margin-bottom: 30px;
}

.score-display {
    font-size: 72px;
    font-weight: bold;
    color: #423b24;
    margin: 40px 0;
    padding: 20px;
    border: 2px solid #eee;
    border-radius: 5px;
}

.btn {
    display: inline-block;
    background-color: #286e23;
    color: white;
    padding: 15px 40px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
    border: none;
    font-size: 18px;
    cursor: pointer;
    margin: 0 10px;
}

.btn:hover {
    background-color: #274b09;
}

.submit-btn:hover {
    background-color: #274b09;
}

/* 队伍管理样式 */
.team-controls {
    margin-bottom: 30px;
    text-align: right;
}

.add-team-btn {
    background-color: #286e23;
}

.add-team-btn:hover {
    background-color: #274b09;
}

.teams-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.team-card {
    background-color: #ffffff18;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative;
}

.team-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.team-header h2 {
    font-size: 20px;
    color: #ffffff;
}

.remove-team-btn {
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
    color: #ffffff;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.remove-team-btn:hover {
    opacity: 1;
}

.team-score {
    font-size: 48px;
    font-weight: bold;
    color: #ffffff;
    text-align: center;
    margin: 20px 0;
}

.team-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.submit-section {
    margin-top: 20px;
}

.back-link {
    display: inline-block;
    margin-top: 30px;
    color: #666;
    text-decoration: none;
}

.back-link:hover {
    text-decoration: underline;
}